From 5bb1499c3934bf01b8a99faeafe86fc4403dc937 Mon Sep 17 00:00:00 2001 From: Derk-Jan Hartman Date: Thu, 11 Nov 2010 16:03:21 +0000 Subject: [PATCH] Use CSS pagination options when printing. - Avoid pagebreaks after headers - Avoid pagebreaks inside images and wikitables - Avoid less than 3 lines at the end of beginning of paragraphs. Works on Opera, and partly on Firefox. --- RELEASE-NOTES | 1 + skins/common/commonPrint.css | 12 ++++++++++++ 2 files changed, 13 insertions(+) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index d0da78f4aa..ec86c60ad6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -202,6 +202,7 @@ LocalSettings.php. The specific bugs are listed below in the general notes. * Add CSS classes (including namespace and pagename) to the enhanced recent changes/watchlist entries * (bug 22463) Add hook 'SkinGetPoweredBy' to make 'powered by' icon customizable +* Added CSS print pagination to the print stylesheets === Bug fixes in 1.17 === * (bug 17560) Half-broken deletion moved image files to deletion archive diff --git a/skins/common/commonPrint.css b/skins/common/commonPrint.css index 45b0074181..af309df1f6 100644 --- a/skins/common/commonPrint.css +++ b/skins/common/commonPrint.css @@ -348,3 +348,15 @@ table.wikitable { a.sortheader { margin: 0px 0.3em; } + +/* Some pagination options */ +.wikitable, .thumb, img { + page-break-inside: avoid; +} +h2, h3, h4, h5, h6, h7 { + page-break-after: avoid; +} +p { + widows: 3; + orpans: 3; +} -- 2.20.1